//波次单查看
$(function(){
	$('#picklistViewDatagrid').datagrid({
		//url:getpickgoodsUrl+"?randnum="+Math.floor(Math.random()*1000000),
		url:getpickgoodsUrl,
		title:'波次单编号:'+picklist_no,
		fitColumns:true,
		rownumbers:true,
		columns:[[
		{field:'goods_no',title:'商品编号',sortable:true},
		{field:'goods_name',title:'商品名称',sortable:true},
		{field:'goods_count',title:'总数量',sortable:true},
		{field:'storage_code',title:'库位',sortable:true}
		]],
		queryParams:{
			picklist_no:picklist_no
		},
		onLoadError:function(data){
			var info=eval('('+data.responseText+')');
			$.messager.confirm('错误提示',info.message,function(r){
				var tab=$('#Tabs').tabs('getSelected');
				var index=$('#Tabs').tabs('getTabIndex',tab);
				$('#Tabs').tabs('close',index);
			});
		}
	});
});
picklistViewObj={
	showAll:function(){
		$('#picklistViewDatagrid').datagrid({ queryParams:''});
	}

}